{include file="header.html"}
<div> 
{include file='yuanxi/nav.html'}
 <table class="table table-bordered" width="100%">
  <tr>
   
   
   <td>名称</td>
 
   
   <td>添加时间</td>
<td>操作</td>
  </tr>
 {foreach item=c from=$data}
<tr>
 
   
   <td>{$c.title}</td>
  
   <td>{$c.dateline|date:Y-m-d}</td>
<td><a href="admin.php?m=yuanxi&a=add&id={$c.id}">编辑</a> 

<a href="javascript:;" class="delete" url="admin.php?m=yuanxi&a=delete&ajax=1&id={$c.id}">删除</a></td>
  </tr>
  {foreach item=cc from=$c.child}
  <tr>
 
   
   <td>|--{$cc.title}</td>
  
   <td>{$cc.dateline|date:Y-m-d}</td>
<td><a href="admin.php?m=yuanxi&a=add&id={$cc.id}">编辑</a> 

<a href="javascript:;" class="delete" url="admin.php?m=yuanxi&a=delete&ajax=1&id={$cc.id}">删除</a></td>
  </tr>
  {/foreach}
   {/foreach}
 </table>
<div>{$pagelist}</div>
</div> 
{include file="footer.html"}